package com.ytf.core.web.pojo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author YTF
 * @since 2025-05-20
 */
@Schema(name = "UserVo", description = "用户信息视图对象")
@Data
public class UserVo {

    /**
     * 用户雪花ID
     */
    @Schema(description = "用户ID", example = "1234567890")
    private Long id;

    /**
     * 用户名
     */
    @Schema(description = "用户名", example = "admin")
    private String username;

    /**
     * 密码
     */
    @Schema(description = "密码(加密后)", example = "$2a$10$N9qo8uLOickgx2ZMRZoMy...")
    private String password;

    /**
     * 手机号
     */
    @Schema(description = "手机号", example = "13800138000")
    private String mobile;

    /**
     * 邮箱
     */
    @Schema(description = "邮箱", example = "admin@example.com")
    private String email;

    /**
     * 启用状态（0-禁用，1-启用）
     */
    @Schema(description = "账号状态: true-启用, false-禁用", example = "true")
    private Boolean enabled;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间", example = "2025-05-20T12:00:00")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @Schema(description = "最后修改时间", example = "2025-05-20T12:00:00")
    private LocalDateTime updateTime;

    /**
     * 角色列表
     */
    @Schema(description = "用户拥有的角色列表")
    private List<RoleVo> roleVos;
}